package com.labofjet.blogv3.facade;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Component;

import com.labofjet.blogv3.model.Artical;
import com.labofjet.blogv3.service.impl.ArticalService;

@Component
public class SearchFacade {
	@Autowired
	private ArticalService articalService;
	public Page<Artical> findArticals(String keyword, int currentPage) {
		return articalService.findKeywordArticals(keyword, currentPage);
	}

}
